﻿<%@ Page Language="C#" EnableEventValidation="false"  MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="PersonEmployeeJobForm.aspx.cs" Inherits="App_Input_PersonEmployeeJobForm" Title="职位信息维护"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" >
        function jobIdChange(object)
    {
     CommonAjaxUtils.FindPositions(object.value,get_jobId_Result_CallBack);

    }
    
     function get_jobId_Result_CallBack(response)
    {
        if (response.value != null)
        {                    

            var drop = window.document.getElementById('<%=lstJob.ClientID %>');
            drop.length=0;　　　　            
            var ds = response.value;
            if(ds != null && typeof(ds) == "object")
            {                   
                for(var i=0; i<ds.length; i++)
                {
       
　　                var name=ds[i].JobName;
　　                var id=ds[i].JobId;
　　                drop.options.add(new Option(name,id));
                }                
            }
        }
        return
    }

</script>

    &nbsp;<table width="100%">
                    <tr>
                        <td>
                            <table class="table_border_line">
                                <tr>
                                    <td align="left" colspan="6" >
                                    <script language="javascript">
                                        (new TitleBar('SearchBar', '职位信息维护')).showBar();
                            </script>
                                    </td>                                    
                                </tr>
                            </table>
                            <table class="table_border_line" id="TABLE1"  style="background:ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 20%">
                            员工编号：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:Label ID="lblEmployeeId" runat="server"
                            Text=""></asp:Label></td>
                        <td align="left" style="width: 20%"></td>
                        <td align="left" style="width: 25%"></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px">&nbsp;</td>
                        <td class="list_data_bg_left" style="width: 126px">员工姓名：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="lblEmployeeName" runat="server" Text=""></asp:Label></td>
                        <td style="width: 414px">&nbsp;入职日期：</td>
                        <td style="width: 414px">
                            &nbsp;<asp:Label ID="lblEmployeeDate" runat="server" Text=""></asp:Label></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">当前部门：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="lblGroupName" runat="server" Text=""></asp:Label></td>
                        <td style="width: 414px">&nbsp;当前职位：</td>
                        <td style="width: 414px">
                            &nbsp;<asp:Label ID="lblJobName" runat="server" Text=""></asp:Label></td>
                        <td style=""></td>
                    </tr>
                                <tr>
                                    <td style="width: 5px; height: 24px"></td>
                                    <td class="list_data_bg_left" style="width: 126px">所属部门：</td>
                                    <td colspan="3">&nbsp;<asp:DropDownList ID="lstGroup" runat="server" DataTextField="departName" DataValueField="departId" onchange="jobIdChange(this)">
                                    </asp:DropDownList></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td style="width: 5px; height: 24px"></td>
                                    <td class="list_data_bg_left" style="width: 126px">所属职位：</td>
                                    <td colspan="3">&nbsp;<asp:DropDownList ID="lstJob" runat="server" DataTextField="JobName" DataValueField="JobId">
                                    </asp:DropDownList></td>
                                    <td></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" style="">
                            &nbsp; &nbsp;&nbsp;
                            <asp:Button ID="btnOk" runat="server" Text="  登 记  " Height="22px" Width="89px" CssClass="button" OnClick="btnOk_Click"/>
                            &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;                            
                            <asp:Button ID="btnBack" runat="server" Text="  返 回  " Height="22px" Width="89px" CssClass="button" OnClick="btnBack_Click" /></td>
                    </tr>
                </table>
</asp:Content>

